package com.grj.service.article.controller;

import com.grj.service.article.verify.AbstractVerify;
import com.grj.service.article.verify.VerifyFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 14505
 */
@RestController
@RequestMapping("/verify")
public class VerifyController {

    @Resource
    private VerifyFactory verifyFactory;

    @GetMapping("{s}")
    public void verify(@PathVariable String s) throws Exception {
        verifyFactory.getVerify(s);
    }
}
